<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for tag.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file tag.php</h1>
<p>Documentation is available at <a href="../myLiveShop/_model_tag_php.html">tag.php</a></p>
<div class="src-code">
<pre><ol><li><a name="a1"></a><span class="src-php">&lt;?php</span></li>
<li><a name="a2"></a><span class="src-doc">/**</span></li>
<li><a name="a3"></a><span class="src-doc"> * Модель</span></li>
<li><a name="a4"></a><span class="src-doc"> * </span></li>
<li><a name="a5"></a><span class="src-doc"> * Общий класс модели</span></li>
<li><a name="a6"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Anton Zavidov</span></li>
<li><a name="a7"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> myLiveShop</span></li>
<li><a name="a8"></a><span class="src-doc"> */</span></li>
<li><a name="a9"></a>&nbsp;</li>
<li><a name="a10"></a><span class="src-doc">/**</span></li>
<li><a name="a11"></a><span class="src-doc"> * Базовый класс для работы с моделями</span></li>
<li><a name="a12"></a><span class="src-doc"> *</span></li>
<li><a name="a13"></a><span class="src-doc"> */</span></li>
<li><a name="a14"></a><span class="src-key">class </span><a href="../myLiveShop/ModelTag.html">ModelTag</a> <span class="src-key">extends </span><a href="../myLiveShop/Model.html">Model</a> <span class="src-sym">{</span></li>
<li><a name="a15"></a>    </li>
<li><a name="a16"></a>    <span class="src-key">const </span><a href="../myLiveShop/ModelTag.html#constTABLE">TABLE</a>                = <span class="src-str">'tag'</span><span class="src-sym">;</span></li>
<li><a name="a17"></a>    <span class="src-key">const </span><a href="../myLiveShop/ModelTag.html#constF_TAG_ID">F_TAG_ID</a>             = <span class="src-str">'tag_id'</span><span class="src-sym">;</span></li>
<li><a name="a18"></a>    <span class="src-key">const </span><a href="../myLiveShop/ModelTag.html#constF_USER_ID">F_USER_ID</a>          = <span class="src-str">'user_id'</span><span class="src-sym">;</span></li>
<li><a name="a19"></a>    <span class="src-key">const </span><a href="../myLiveShop/ModelTag.html#constF_TITLE">F_TITLE</a>              = <span class="src-str">'title'</span><span class="src-sym">;</span></li>
<li><a name="a20"></a>    <span class="src-key">const </span><a href="../myLiveShop/ModelTag.html#constF_COUNT_ELEMENTS">F_COUNT_ELEMENTS</a>    = <span class="src-str">'count_elements'</span><span class="src-sym">;</span></li>
<li><a name="a21"></a>    </li>
<li><a name="a22"></a>    <span class="src-key">public </span><span class="src-key">function </span><a href="../myLiveShop/ModelTag.html#method__construct">__construct</a><span class="src-sym">(</span><span class="src-var">$className</span>=<span class="src-id">null</span><span class="src-sym">)</span><span class="src-sym">{</span></li>
<li><a name="a23"></a>        <span class="src-id">parent</span><span class="src-sym">::</span><a href="../myLiveShop/Model.html#method__construct">__construct</a><span class="src-sym">(</span>__CLASS__<span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a24"></a>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/Model.html#var$name">name</a>=<span class="src-str">'tag'</span><span class="src-sym">;</span></li>
<li><a name="a25"></a>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/Model.html#var$id_field">id_field</a>=<span class="src-key">array</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_TAG_ID</span><span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a26"></a>        <span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../myLiveShop/Model.html#var$fields">fields</a>=<span class="src-key">array</span><span class="src-sym">(</span></li>
<li><a name="a27"></a>            <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span>.<span class="src-id"><a href="../myLiveShop/_config_php.html#defineDOT">DOT</a></span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_TAG_ID             </span>=&gt; <span class="src-key">new </span><span class="src-id"><a href="../myLiveShop/Field.html">Field</a></span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_TAG_ID</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span><span class="src-sym">,</span><span class="src-key">array</span><span class="src-sym">(</span></li>
<li><a name="a28"></a>                                        <span class="src-str">'lenght'</span>=&gt;<span class="src-num">5</span><span class="src-sym">,</span></li>
<li><a name="a29"></a>                                        <span class="src-str">'auto'</span>=&gt;<span class="src-id">true</span><span class="src-sym">))</span><span class="src-sym">,</span></li>
<li><a name="a30"></a>            <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span>.<span class="src-id"><a href="../myLiveShop/_config_php.html#defineDOT">DOT</a></span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_USER_ID         </span>=&gt; <span class="src-key">new </span><span class="src-id"><a href="../myLiveShop/Field.html">Field</a></span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_USER_ID</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span><span class="src-sym">,</span><span class="src-key">array</span><span class="src-sym">(</span></li>
<li><a name="a31"></a>                                        <span class="src-str">'important'</span>=&gt;<span class="src-id">true</span><span class="src-sym">,</span></li>
<li><a name="a32"></a>                                        <span class="src-str">'lenght'</span>=&gt;<span class="src-num">2</span><span class="src-sym">))</span><span class="src-sym">,</span></li>
<li><a name="a33"></a>            <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span>.<span class="src-id"><a href="../myLiveShop/_config_php.html#defineDOT">DOT</a></span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_TITLE             </span>=&gt; <span class="src-key">new </span><span class="src-id"><a href="../myLiveShop/Field.html">Field</a></span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_TITLE</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span><span class="src-sym">,</span><span class="src-key">array</span><span class="src-sym">(</span></li>
<li><a name="a34"></a>                                        <span class="src-str">'type'</span>=&gt;<span class="src-id"><a href="../myLiveShop/Field.html">Field</a></span><span class="src-sym">::</span><span class="src-id">TYPE_STRING</span><span class="src-sym">,</span></li>
<li><a name="a35"></a>                                        <span class="src-str">'validate_type'</span>=&gt;<span class="src-id"><a href="../myLiveShop/Validator.html">Validator</a></span><span class="src-sym">::</span><span class="src-id">VALIDATE_TEXT</span><span class="src-sym">,</span></li>
<li><a name="a36"></a>                                        <span class="src-str">'lenght'</span>=&gt;<span class="src-num">255</span><span class="src-sym">,</span></li>
<li><a name="a37"></a>                                        <span class="src-str">'important'</span>=&gt;<span class="src-id">true</span><span class="src-sym">))</span><span class="src-sym">,</span></li>
<li><a name="a38"></a>            <span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span>.<span class="src-id"><a href="../myLiveShop/_config_php.html#defineDOT">DOT</a></span>.<span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_COUNT_ELEMENTS     </span>=&gt; <span class="src-key">new </span><span class="src-id"><a href="../myLiveShop/Field.html">Field</a></span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">F_COUNT_ELEMENTS</span><span class="src-sym">,</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-id">TABLE</span><span class="src-sym">,</span><span class="src-key">array</span><span class="src-sym">(</span></li>
<li><a name="a39"></a>                                        <span class="src-str">'lenght'</span>=&gt;<span class="src-num">5</span><span class="src-sym">))</span></li>
<li><a name="a40"></a>        <span class="src-sym">)</span><span class="src-sym">;</span></li>
<li><a name="a41"></a>    <span class="src-sym">}</span></li>
<li><a name="a42"></a><span class="src-sym">}</span></li>
</ol></pre>
</div>
	<p class="notes" id="credit">
		Документ создан Mon, 14 Feb 2011 01:09:01 +0200 в <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</body>
</html>